package com.ruoyi.project.user.company.controller;


import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.user.host.domain.Host;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/user/company")
public class CompanyController extends BaseController {

    private String prefix = "user/company";


    @RequiresPermissions("user:company:view")
    @GetMapping()
    public String company(){
        System.out.println("执行了控制器");
        return prefix + "/company";

    }


    @ResponseBody
    @PostMapping("/list")
    @RequiresPermissions("user:company:list")
    public TableDataInfo list(){
        return null;
    }

}
